import request from '@/utils/request'

const api_name = '/admin/product/brand'

// 分页列表哈哈哈哈 
export const GetBrandPageList = (page, limit) => {
  return request({
    url: `${api_name}/findAllBrand/${page}/${limit}`,
    method: 'get'
  })
}

// 保存品牌
export const SaveBrand = brand => {
        return request({
            url: `${api_name}/saveBrand`,
            method: 'post',
            data: brand,
        })
    }

    // 查询所有的品牌数据
export const FindAllBrand = () => {
  return request({
    url: `${api_name}/findAll`,
    method: 'get',
  })
}